-
Notifications
You must be signed in to change notification settings - Fork 32
Add labeling template #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added DatasetMappingCreateRequest and DatasetMappingUpdateRequest schemas to handle dataset mapping requests with camelCase and snake_case support. - Introduced Annotation Template schemas including CreateAnnotationTemplateRequest, UpdateAnnotationTemplateRequest, and AnnotationTemplateResponse for managing annotation templates. - Implemented AnnotationTemplateService for creating, updating, retrieving, and deleting annotation templates, including validation of configurations and XML generation. - Added utility class LabelStudioConfigValidator for validating Label Studio configurations and XML formats. - Updated database schema for annotation templates and labeling projects to include new fields and constraints. - Seeded initial annotation templates for various use cases including image classification, object detection, and text classification.
… rendering; update LabelStudio config validation for camelCase support
…etwork as external
- Introduced new components for tag selection and browsing in the frontend. - Added API endpoint to fetch tag configuration from the backend. - Implemented tag configuration management in the backend, including loading from YAML. - Enhanced template service to support dynamic tag rendering based on configuration. - Updated validation utilities to incorporate tag configuration checks. - Refactored existing code to utilize the new tag configuration structure.
…ncy management - Added pyyaml (>=6.0.3,<7.0.0) to pyproject.toml dependencies. - Updated Dockerfile to install Poetry and manage dependencies using it. - Improved layer caching by copying only dependency files before the application code. - Removed unnecessary installation of build dependencies to keep the final image size small.
…tep in Dockerfile
JasonW404
added a commit
that referenced
this pull request
Nov 13, 2025
Re-adds the 'database-docker-build' step to the build process. This target was accidentally removed in PR #79.
JasonW404
added a commit
that referenced
this pull request
Nov 13, 2025
Re-adds the 'database-docker-build' step to the build process. This target was accidentally removed in PR #79.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors to the Data Annotation module, focusing on migrating annotation task creation to use templates, cleaning up related UI components, and improving Docker and deployment configuration. The most significant changes are the switch to template-based annotation task creation, removal of the inline labeling config editor, and updates to Docker build targets and compose files for better maintainability and external volume/network support.
Backend Improvements:
Data Annotation Task Creation and UI Refactor:
CreateAnnotationTaskDialog.tsx. The dialog now fetches available templates and requires users to select one, streamlining the creation process. [1] [2] [3] [4] [5]CreateAnnptationTaskDialogtoCreateAnnotationTaskDialogfor consistency and fixed import references inDataAnnotation.tsx.Frontend Improvements:
useTagConfigto fetch and parse Label Studio tag configuration, improving code reuse and error handling for tag config management.useFetchData.tsto use camelCase (pageSizeinstead ofsize) for consistency with backend expectations.DataAnnotation.tsxto correctly parse and increment the port number.Docker and Deployment Configuration:
backend-python-docker-buildas a required dependency for the mainbuildtarget in theMakefile, ensuring all necessary backend images are built.label-studio-adapter-docker-buildand consolidated thebackend-python-docker-buildtarget definition. [1] [2]docker-compose.ymlfor Label Studio to markdatamate-dataset-volumeanddatamate-networkas external resources, improving deployment flexibility.Component and UI Cleanups:
References: [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]